import 'dart:convert';
import 'package:crypto/crypto.dart';

//FIXME:加密的可以放到工具类里面
class GenerateEncrypt {
  static String generateMD5(String data) {
    var content = utf8.encode(data);
    var digest = md5.convert(content);
    print('generateMD5---${digest.toString()}');
    return digest.toString();
  }
}
